<?php
namespace Admin\Controller;
/**
 * 座位号设置
 * User: linkwhy
 * Date: 2015/10/16
 * Time: 16:31
 */
class SeatNumberController extends AdminController{

    public function index(){
        $list   = $this->lists('board');
        int_to_string($list);
        $this->assign('_list', $list);
        $this->meta_title = '座位号列表';
        $this->display();
    }

    public function add(){
        $this->meta_title = '新增座位号';
        $this->display('update');
    }

    public function edit(){
        $dclass = M('board');
        $data = $dclass->field('id,num,is_bj,bj_money')->where(array('id' => I('get.id')))->find();
        $this->meta_title = '修改座位号';
        $this->assign('data', $data);
        $this->display('update');
    }

}